var save = $persistentStore.read("num");
var rep = $response.body;
var body = eval("(" + rep + ")");

if (parseInt(save) > 0) {
    $persistentStore.write("num", 0)
    getStore("bodyStr").then(bodyStr => {
        body = bodyStr
        $notification.post("写入信息成功", "", bodyStr)
    })

} else {
    $persistentStore.write("num", 10086)
    $notification.post("截取信息成功", "", "")
    $persistentStore.write("bodyStr", rep)
}

$done({body})

function getStore(key) {
    return $persistentStore.read(key);
}